package com.hospitalsystem.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (Arrange)实体类
 *
 * @author makejava
 * @since 2024-12-28 19:24:18
 */
public class Arrange implements Serializable {
    private static final long serialVersionUID = 987718390809757332L;
    
    private String arrangeId;
    
    private String pId;
    
    private String dId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arrangeTime;
    
    private String ifPay;
    
    private String ifReserve;
    
    private String ifFinish;

    private Doctor doctor;
    private int peopleAhead;

    private String startTime;          // 时间段开始时间
    private String endTime;            // 时间段结束时间



    public int getPeopleAhead() {
        return peopleAhead;
    }

    public void setPeopleAhead(int peopleAhead){
        this.peopleAhead = peopleAhead;
    }

    public String getArrangeId() {
        return arrangeId;
    }

    public void setArrangeId(String arrangeId) {
        this.arrangeId = arrangeId;
    }

    public String getPId() {
        return pId;
    }

    public void setPId(String pId) {
        this.pId = pId;
    }

    public String getDId() {
        return dId;
    }

    public void setDId(String dId) {
        this.dId = dId;
    }

    public Date getArrangeTime() {
        return arrangeTime;
    }

    public void setArrangeTime(Date arrangeTime) {
        this.arrangeTime = arrangeTime;
    }

    public String getIfPay() {
        return ifPay;
    }

    public void setIfPay(String ifPay) {
        this.ifPay = ifPay;
    }

    public String getIfReserve() {
        return ifReserve;
    }

    public void setIfReserve(String ifReserve) {
        this.ifReserve = ifReserve;
    }

    public String getIfFinish() {
        return ifFinish;
    }

    public void setIfFinish(String ifFinish) {
        this.ifFinish = ifFinish;
    }

    public Arrange(String arrangeId,String pId,String dId, Date arrangeTime,String ifPay, String ifReserve, String ifFinish){
        this.arrangeId = arrangeId;
        this.pId = pId;
        this.dId = dId;
        this.arrangeTime = arrangeTime;
        this.ifPay = ifPay;
        this.ifReserve = ifReserve;
        this.ifFinish = ifFinish;
    }

    // Setter方法
    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    // Getter方法
    public Doctor getDoctor() {
        return this.doctor;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Arrange() {
    }

}

